package com.scujj.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Message implements Serializable {
    private Long suid;
    private Long guid;
    private Type type;
    private Object data;

    public enum Type {
        FILE("file"),
        TEXT("text");
        public String t;

        Type(String n) {
            this.t = n;
        }
    }
}
